package org.colin.dictPojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-09
 */
@TableName("d_language")
@ApiModel(value="语种类",description="请求参数类" )
public class DLanguage extends Model<DLanguage> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty
    private Integer id;

    /**
     * 语种名称
     */
    @TableField("languageName")
    @ApiModelProperty(example="测试语种",value = "语种名称")
    private String languageName;

    /**
     * 类型  1：汉外  2：外汉
     */
    @ApiModelProperty(example="1",value = "类型  1：汉外  2：外汉")
    private Integer type;

    /**
     * 备注
     */
    @ApiModelProperty(example="备注",value = "备注")
    private String remarks;

    /**
     * 创建人
     */
    @TableField("createUser")
    @ApiModelProperty(example="1" ,value = "创建人")
    private Integer createUser;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLanguageName() {
        return languageName;
    }

    public void setLanguageName(String languageName) {
        this.languageName = languageName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DLanguage{" +
        "id=" + id +
        ", languageName=" + languageName +
        ", type=" + type +
        ", remarks=" + remarks +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        "}";
    }
}
